package com.xmy.cultivate.service;

import com.xmy.cultivate.entity.CourseSchedulingDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 排课详情 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-03-20
 */
public interface ICourseSchedulingDetailService extends IService<CourseSchedulingDetail> {

    Integer getSchedulingCountForRecord(Long gradeId);

    boolean deleteForGradeId(Long gradeId, LocalDate localDate);

    Long getIsAtForDate(Long gradeId, LocalDate schoolDate);

    Integer getNextLessonNum(Long gradeId, LocalDate schoolDate);

    CourseSchedulingDetail getOneForId(Long Id);

    CourseSchedulingDetail getOneForOutId(Long Id);

    Integer updateDeleted(Long id, Integer deleted);

    List<CourseSchedulingDetail> getSchedulingClash(Integer yearPart, Integer quarterNum, Long studentId, Long gradeId, String localDateTime);
}
